Main ----- Copyright Up Previous Next

About the sources

hsc was written in naked & masochistic ANSI-C. This should ensure a maximum of partability. However, the handling of filenames is a system-dependant thing, which has to be adapted for every OS.

At the moement, hsc is known to work on AmigaOS and several Unix-es.

As I'm a lazy programmer, hsc uses some special kind of strings, that expand to the size they currently need; this tries to compensate the fact that Mr. Kernigham and Mr. Ritchie never managed to understand the string concepts of BASIC, and forced the whole world to work with this zero-terminated character array shit.

Nearly everything is done with these special strings. At the beginning, the whole input file is read to one single (probably quite long) string, and the whole ouput also is one single (probably even longer) string, that is written to disk in one piece at the end of conversion.

Therefor, hsc more or less needs a linear address space without 64K-segmentation or similar bullshit. Otherwise, it will crash when processing too big files.

If you have problems compiling hsc or want to do a port to another OS, email me; for address, see footline.


Thomas Aglassinger ( agi@giga.or.at ), 15-May-1996